package com.kcnet.qk.Common;


import java.util.ArrayList;
import java.util.List;

import com.kcnet.qk.R;
import com.kcnet.qk.app.AppContext;
import com.kcnet.qk.constant.Const;
import com.kcnet.qk.model.FuncItem;
import com.kcnet.qk.util.AppUtil;
import com.kcnet.qk.util.PreferenceHelper;

/**
 * Created by czc on 2017/7/7.
 */

public class FuncItemFactory {

    private static FuncItemFactory instance;


    public static final String TAB_ADD_FIREND_MOD = "添加好友";
    public static final String TAB_HDYH = "互动养号";
    public static final String TAB_TIMELINE = "朋友圈";
    public static final String TAB_TEAM_AND_HOME = "社交功能";
    //public static final String TAB_REQ_MANGER = "任务管理";

    public static final String ADD_FIREND_PHONE = "添加通讯录好友";
    public static final String ADD_FIREND_FRIED = "搜索添加好友";
    public static final String ADD_FIREND_RECOMMED = "添加群成员";
    public static final String ADD_FIREND_ADOPT = "通过好友验证";


    public static final String HDYH_HYLT = "互动聊天";
    public static final String HDYH_ZDHF = "自动回复";
    //public static final String HDYH_TGHYQQ = "通过好友请求";


    public static final String PYQ_LLPYQ = "浏览朋友圈";
    public static final String PYQ_DZ = "点赞";
    public static final String PYQ_FSP = "发视频";
    public static final String PYQ_SEND_IMG_TEXT = "发布图文";


    public static final String SJ_FJDR = "添加附近的人";
    public static final String SJ_YYY = "摇一摇";
    public static final String SJ_FQQL = "发起群聊";
    public static final String SJ_QFHY = "群发消息给好友";
    public static final String SJ_QFQL = "群发消息到群聊";



    public static final String STOP_ADD_PEOPLE = "停止所有操作";
    public static final String FLOW_WINDOW = "显示悬浮窗";

    public static final String SOCKET_CON_SERVER = "连接服务器";
    public static final String SOCKET_CON_SERVER_STATUS = "检测连接服务器状态";
    public static final String APP_CHECK_UPDATE = "检测APP更新";
    private FuncItemFactory() {

    }

    public static FuncItemFactory getInstance() {
        synchronized (FuncItemFactory.class) {
            if (instance == null) {
                instance = new FuncItemFactory();
            }
        }
        return instance;
    }

    public List<FuncItem> createmMainFuncItems() {
        List<FuncItem> list = new ArrayList<FuncItem>() {
            {
                add(new FuncItem(TAB_ADD_FIREND_MOD, TAB_ADD_FIREND_MOD, R.drawable.icon_auto, false));
                add(new FuncItem(TAB_HDYH, TAB_HDYH, R.drawable.icon_auto, false));
                add(new FuncItem(TAB_TIMELINE, TAB_TIMELINE, R.drawable.icon_auto, false));
                add(new FuncItem(TAB_TEAM_AND_HOME, TAB_TEAM_AND_HOME, R.drawable.icon_auto, false));
               // add(new FuncItem(TAB_REQ_MANGER, TAB_REQ_MANGER, R.drawable.icon_auto, false));
                add(new FuncItem(SOCKET_CON_SERVER_STATUS, SOCKET_CON_SERVER_STATUS, R.drawable.icon_flow_window, false));
                add(new FuncItem(SOCKET_CON_SERVER, SOCKET_CON_SERVER, R.drawable.icon_flow_window, false));

                add(new FuncItem(APP_CHECK_UPDATE, "当前版本:"+AppUtil.getVersionName(AppContext.getInstance().getContext()), R.drawable.icon_flow_window, false));
                add(new FuncItem(STOP_ADD_PEOPLE, STOP_ADD_PEOPLE, R.drawable.icon_stop, false));
                add(new FuncItem(FLOW_WINDOW, FLOW_WINDOW, R.drawable.icon_flow_window, false));

            }
        };

        return list;
    }

    public List<FuncItem> createmAddFriendFuncItems() {
        List<FuncItem> list = new ArrayList<FuncItem>() {
            {
                add(new FuncItem(ADD_FIREND_PHONE, ADD_FIREND_PHONE, R.drawable.icon_auto, false));
                add(new FuncItem(ADD_FIREND_FRIED, ADD_FIREND_FRIED, R.drawable.icon_auto, false));
                add(new FuncItem(ADD_FIREND_RECOMMED, ADD_FIREND_RECOMMED, R.drawable.icon_auto, false));
                add(new FuncItem(ADD_FIREND_ADOPT, ADD_FIREND_ADOPT, R.drawable.icon_auto, false));

            }
        };

        return list;
    }

    public List<FuncItem> createmHDYHFuncItems() {
        List<FuncItem> list = new ArrayList<FuncItem>() {
            {
                add(new FuncItem(HDYH_HYLT, HDYH_HYLT, R.drawable.icon_auto, false));
                add(new FuncItem(HDYH_ZDHF, HDYH_ZDHF, R.drawable.icon_auto, false));
               // add(new FuncItem(HDYH_TGHYQQ, HDYH_TGHYQQ, R.drawable.icon_auto, false));

            }
        };

        return list;
    }

    public List<FuncItem> createmPYQFuncItems() {
        List<FuncItem> list = new ArrayList<FuncItem>() {
            {
                add(new FuncItem(PYQ_LLPYQ, PYQ_LLPYQ, R.drawable.icon_auto, false));
                add(new FuncItem(PYQ_DZ, PYQ_DZ, R.drawable.icon_auto, false));
                add(new FuncItem(PYQ_FSP, PYQ_FSP, R.drawable.icon_auto, false));
                add(new FuncItem(PYQ_SEND_IMG_TEXT, PYQ_SEND_IMG_TEXT, R.drawable.icon_auto, false));
            }
        };

        return list;
    }

    public List<FuncItem> createmSJFuncItems() {
        List<FuncItem> list = new ArrayList<FuncItem>() {
            {


                add(new FuncItem(SJ_FJDR, SJ_FJDR, R.drawable.icon_auto, false));
                add(new FuncItem(SJ_YYY, SJ_YYY, R.drawable.icon_auto, false));
                add(new FuncItem(SJ_FQQL, SJ_FQQL, R.drawable.icon_auto, false));
                add(new FuncItem(SJ_QFHY, SJ_QFHY, R.drawable.icon_auto, false));
                add(new FuncItem(SJ_QFQL, SJ_QFQL, R.drawable.icon_auto, false));
            }
        };

        return list;
    }


}
